import request from './request.js'

const user = {
	login(data) {
		return request.post('/member/login', data)
	},
	//手机号获取
	getPhoneNumber(data) {
		return request.post('/member/getPhoneNumber', data)
	},
	//
	getMemberInfo(data) {
		return request.get('/member/getMemberInfo', {data})
	},
	editMemberInfo(data) {
		return request.post('/member/editMemberInfo', data)
	},
	//提现申请
	withdrawal(data) {
		return request.post('/member/withdrawal', data)
	},
	//资金变动记录
	withdrawalRecode(data) {
		return request.get('/member/withdrawalRecode', {data})
	},
	//分享绑定上下级
	member_share(data) {
		return request.post('/member/member_share', data)
	},
	
	// 代理商配置
	getAgentCost(data) {
		return request.get('/pub/getAgentCost', {data})
	},
	//申请成为代理商
	applyBecomeAgent(data) {
		return request.post('/member/applyBecomeAgent', data)
	},
	//取消订单
	agentCorderCancel(data) {
		return request.get('/member/agentCorderCancel', {data})
	},
}
export default user